package org.winexpress

class PaymentType {

    int id
    String paymentTypeName
    String description
    
    static hasOne = [transaction:Transaction]
    
    static mapping = {
        description type: 'text'
    }
    
    static constraints = {
        id(blank:false, unique:true)
        paymentTypeName(blank:false, unique:true)
    }
}
